package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

/**
 * Created by Steve.Tao on 2017/8/18.
 */
@Component
@DisconfFile(targetDirPath = "disconf", filename = "baiqishi.properties")
public class BaiqishiProperties {

    private String deviceFingerPrintUrl;
    private String riskDecisionUrl;
    private String gpscountrycheckUrl;

    private String verifyKey;
    private String partnerId;
    private String appId;
    /**
     * IP归属地查询url
     */
    private String ipCountrycheckUrl;

    @DisconfFileItem(name = "baiqishi.riskDecisionUrl", associateField = "riskDecisionUrl")
    public String getRiskDecisionUrl() {
        return riskDecisionUrl;
    }

    public void setRiskDecisionUrl(String riskDecisionUrl) {
        this.riskDecisionUrl = riskDecisionUrl;
    }

    @DisconfFileItem(name = "baiqishi.verifyKey", associateField = "verifyKey")
    public String getVerifyKey() {
        return verifyKey;
    }

    public void setVerifyKey(String verifyKey) {
        this.verifyKey = verifyKey;
    }

    @DisconfFileItem(name = "baiqishi.partnerId", associateField = "partnerId")
    public String getPartnerId() {
        return partnerId;
    }

    public void setPartnerId(String partnerId) {
        this.partnerId = partnerId;
    }

    @DisconfFileItem(name = "baiqishi.appId", associateField = "appId")
    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    @DisconfFileItem(name = "baiqishi.deviceFingerPrintUrl", associateField = "deviceFingerPrintUrl")
    public String getDeviceFingerPrintUrl() {
        return deviceFingerPrintUrl;
    }

    public void setDeviceFingerPrintUrl(String deviceFingerPrintUrl) {
        this.deviceFingerPrintUrl = deviceFingerPrintUrl;
    }

    @DisconfFileItem(name = "baiqishi.gpscountrycheckUrl", associateField = "gpscountrycheckUrl")
    public String getGpscountrycheckUrl() {
        return gpscountrycheckUrl;
    }

    public void setGpscountrycheckUrl(String gpscountrycheckUrl) {
        this.gpscountrycheckUrl = gpscountrycheckUrl;
    }

    @DisconfFileItem(name = "baiqishi.ipcountrycheckUrl", associateField = "ipCountrycheckUrl")
    public String getIpCountrycheckUrl() {
        return ipCountrycheckUrl;
    }

    public void setIpCountrycheckUrl(String ipCountrycheckUrl) {
        this.ipCountrycheckUrl = ipCountrycheckUrl;
    }
}
